import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '课程培训名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '培训开始时间',
    align: "center",
    dataIndex: 'startTime'
  },
  {
    title: '培训结束时间',
    align: "center",
    dataIndex: 'endTime'
  },
  {
    title: '培训内容描述',
    align: "center",
    dataIndex: 'description'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '课程培训名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '培训开始时间',
    field: 'startTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '培训结束时间',
    field: 'endTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '培训内容描述',
    field: 'description',
    component: 'Input',
  },
  {
    label: '租户ID',
    field: 'tenantId',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
